export function formatContent(content:string){
    console.log(content, 'content');
    const TITLE_REG = new RegExp(/^(#+\s{1})(\S+)/g);
    return content.replace(TITLE_REG, ()=>{
        let length = RegExp.$1.length - 1;
        length = length > 7 ? 7 : length < 1 ? 1:length;
        console.log(RegExp.$2, 'RegExpRegExpRegExp');
        return `<h${length}>${RegExp.$2}</h${length}>`;
    });
}